package com.sservice.commonBusiness.service;

import com.sservice.commonBusiness.e.PLetter;
import com.sservice.commonBusiness.vo.PLetterVo;
import com.sservice.base.entity.dto.ListResult;

import java.util.List;

/**
 * Created by byte_su@163.com on 2018/01/12.
 */
public interface PLetterService {
    List<PLetterVo> queryByPage(PLetterVo user);

    int queryCount(PLetterVo user);

    ListResult page(PLetterVo user);
    ListResult pagePlain(PLetterVo user);
    /**
     * 包含评论用户信息的消息
     * @param auctionRegister
     * @return
     */
    List<PLetterVo> queryWithFromUser(PLetterVo auctionRegister);
    /**
     * 发送私信
     *
     * @param msg
     * @param from
     * @param to
     * @param remark
     * @return
     */
    int toMsg(String msg, String from, String to, String remark);



    int deleteByPrimaryKey(Integer id);

    int insert(PLetter record);

    int insertSelective(PLetter record);

    PLetter selectByPrimaryKey(Integer id);

    int updateByPrimaryKeySelective(PLetter record);

    int updateByPrimaryKey(PLetter record);
}
